package com.kaifamiao.statements;

// 鸹: Crow
public class Crow {
    public static void main(String[] args) {

        // 用 标签(label) 标识的循环
        outer:for( int i = 1 ; i < 6 ; i++ ){
            inner:for (int j = 1; j < 6; j++) {
                if ( j == 3 ) {
                    // break;
                    // break inner;
                    break outer;
                }
                System.out.printf( "(%d,%d)\t", i , j );
            }
            System.out.println();
        }

        System.out.println( "\n- - - - - - - - - - - - - - - -");

        // 用 标签(label) 标识的循环
        outer:for( int i = 1 ; i < 6 ; i++ ){
            inner:for (int j = 1; j < 6; j++) {
                if ( j == 3 ) {
                    // continue;
                    // continue inner;
                    continue outer;
                }
                System.out.printf( "(%d,%d)\t", i , j );
            }
            System.out.println();
        }

    }
}
